package com.singlemountain.gcommerce.dao;

import com.googlecode.genericdao.search.Search;
import com.singlemountain.gcommerce.domain.user.Userd;
import org.springframework.stereotype.Repository;

/**
 * Created by IntelliJ IDEA.
 * User: sleepingsun
 * Date: 12-2-20
 * Time: 下午1:56
 * To change this template use File | Settings | File Templates.
 */
@Repository
public class UserdDao extends BaseDao<Userd,Long>{
    public Userd findUserdByEmail(String email){
       /* Search search=new Search();
        search.addFilterEqual("email",email);
        return  searchUnique(search);*/
        return searchUnique(searchEqual("email",email));
    }
}
